package org.gm.mybatis.ext.service;

import java.util.List;

public class PageResult<T> {
	//结果集记录总数
	private Integer total;
	//结果集的总页数
	private Integer pageTotal;
	//结果集的当前页码
	private Integer page;
	//当前页记录数
	private Integer pageRecord;
	//结果集数据列表
	private List<T> rows;
	
	public Integer getTotal() {
		return total;
	}
	public void setTotal(Integer total) {
		this.total = total;
	}
	public Integer getPageTotal() {
		return pageTotal;
	}
	public void setPageTotal(Integer pageTotal) {
		this.pageTotal = pageTotal;
	}
	public Integer getPage() {
		return page;
	}
	public void setPage(Integer page) {
		this.page = page;
	}
	public Integer getPageRecord() {
		return pageRecord;
	}
	public void setPageRecord(Integer pageRecord) {
		this.pageRecord = pageRecord;
	}
	public List<T> getRows() {
		return rows;
	}
	public void setRows(List<T> rows) {
		this.rows = rows;
		this.pageRecord = rows.size();
	}
	
}
